* alloc.c: Check that resized vectors' lengths fit in fixnums.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 14 Jun 2011 21:30:16 +0000 (14:30 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 14 Jun 2011 21:30:16 +0000 (14:30 -0700)
commitee2e46a37eab007f1a4d71441176318fb889c39d
tree1339f281f6e1c505569ae7d0b57f61662c0d5c93
parent7b317fe6ce480992064192d3b05600ef950c54d7
* alloc.c: Check that resized vectors' lengths fit in fixnums.

(header_size, word_size): New constants.
(allocate_vectorlike): Don't check size overflow here.
(allocate_vector): Check it here instead, since this is the only
caller of allocate_vectorlike that could cause overflow.
Check that the new vector's length is representable as a fixnum.
src/ChangeLog
src/alloc.c